<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>边框和内边距</title>
    <style>
        #d1{
            width: 200px;
            height: 200px;
            border: 10px solid red;
            /* 设置圆角超过宽高的一半时为正圆 */
            border-radius: 150px;
        }
        #d2{
            width: 200px;
            height: 200px;
            border:1px solid red;
            /* 给元素添加内边距,默认情况会影响元素的宽高 */
            padding-left: 100px;
            padding-top: 100px;
            /* 设置内边距不影响元素宽高 */
            box-sizing: border-box;
        }
    </style>
</head>
<body>    sdn.dsfasdas
    <div id="d2">内边距测试</div>
    <div id="d1">边框测试</div>
</body>
</html>